/**
 * 首页store
 */

//左侧菜单
const menuData = [
    { id: '0', title:'首页', path: '/admin/home',icon: 'home' },
    {
        id: '1',
        title: '系统管理',
        children: [
            { id: '1-1', title: '角色管理', },
            { id: '1-2', title: '后台账号管理', },
            { id: '1-3', title: '系统日志', },
        ],
    },
    {
        id: '2',
        title: '用户管理',
        children: [
            { id: '2-1', title: '注册用户信息表', path: '/admin/userManage'},
            { id: '2-2', title: '实名认证审核', },
            { id: '2-3', title: '汇总', },
        ],
    },
];


const state = {
    collapsed: false,
    menuData: menuData,
};

const getters = {

};

const mutations = {
    setCollapsed(state, payload){
        console.log(payload, 'setCollapsed');
        state.collapsed=payload;
    },
};

const actions = {

};

export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions,
}
